package com.milk.system.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.milk.system.common.base.BasePageQuery;
import com.milk.system.enums.MerchantStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 商家信息表分页查询对象
 *
 * @author milk
 * @since 2024-05-02
 */
@Schema(description = "商家信息表分页查询对象")
@Data
public class MerchantsPageQuery extends BasePageQuery {

    @Schema(description = "商家名称")
    private String merchantName;

    @Schema(description = "联系人姓名")
    private String contactName;

    @Schema(description = "联系人邮箱")
    private String contactEmail;

    @Schema(description = "联系人电话")
    private String contactPhone;

    @Schema(description = "开始注册日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startRegistrationDate;

    @Schema(description = "结束注册日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endRegistrationDate;

    @Schema(description = "商家状态 如\"活跃\"、\"禁用\"等")
    private MerchantStatusEnum status;
}
